package com.huashi.dealer.modular.business.category.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Schema(description = "赠品分类VO")
public class GiftCategoryVo {

    @Schema(description = "分类ID")
    private Long categoryId;

    @Schema(description = "分类名称")
    private String name;

    @Schema(description = "父级分类ID")
    private Long parentId;

    @Schema(description = "分类图片ID")
    private Long imageId;

    @Schema(description = "分类图片URL")
    private String imageUrl;

    @Schema(description = "分类排序")
    private Integer sort;

    @Schema(description = "分类类型：10商品分类，20赠品分类")
    private Integer isType;

    @Schema(description = "商品类型：10普通，20返利商品，30核销商品")
    private Integer isGoodsType;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @Schema(description = "子分类列表")
    private List<GiftCategoryVo> children;
}
